{% extends "base.html" %}

{% block body %}
  <div>检查结果：</div>
  {% if results %}
      <table width="100%" border="1">
          <tr>
              <td>网站</td>
              <td>访问状态</td>
              <td>读取字节数</td>
              {% for match in matchNames %}
                <td>{{match}}</td>            
              {% endfor %}
          </tr>
        {% for result in results %}
          <tr>
              <td align="left"><a href="{{result.url}}" target="_blank">{{result.url}}</a></td>
              <td align="center">{{result.statusCode}} {{ result.linkInfo|default_if_none:"" }} </td>
              <td align="right">{{ result.size|filesizeformat }}</td>
              {% for m in result.matchCode %}
                <td align="center">{{ m|yesno:"<img src='/static/yes.gif'/>,　"}}</td>
              {% endfor %}
          </tr>
        {% endfor %}
      </table>
  {% endif %}
  <div><a href="/">返回继续检查</a></div>
{% endblock %}